package com.wing.warehouse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.warehouse.model.entity.WarehouseFactoryShelfSpaceVO;
import com.wing.warehouse.model.entity.WrehouseFactoryAdministrationEntity;
import com.wing.warehouse.model.entity.WarehouseFactoryAdministrationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WarehouseFactoryAdministrationDao extends BaseMapper<WrehouseFactoryAdministrationEntity> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<WarehouseFactoryAdministrationVO> list4app(@Param("params") Map<String, Object> params);

    List<WarehouseFactoryAdministrationVO> selectAllList();

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<WarehouseFactoryAdministrationVO> list4app(@Param("page") Page<WarehouseFactoryAdministrationVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    WarehouseFactoryAdministrationVO get4appById(Long id);


    WarehouseFactoryAdministrationVO findFactoryInfo(Long id);

    List<WarehouseFactoryShelfSpaceVO> findFactoryShelfSpaceByWarehouseId(String warehouseId);

    List<WarehouseFactoryAdministrationVO> findFactoryShelfSpaceByWarehouseAreaId(Long warehouseAreaId);

    WarehouseFactoryShelfSpaceVO findFactoryShelfByShelId(Long shelId);

    List<WarehouseFactoryShelfSpaceVO> info(Long id);


    List<WrehouseFactoryAdministrationEntity> findByContract(Long id);

}
